<?php
namespace App\Providers;

use App\Services\WeiHouService;
use Illuminate\Support\ServiceProvider;

class WeHouServiceProvider extends ServiceProvider{
    /**
     * Bootstrap services.
     *
     * @return void
     */
    public function boot(){
        //
    }

    /**
     * Register services.
     *
     * @return void
     */
    public function register(){
        //
        $this->app->singleton(WeiHouService::class, function ($app){
            return new WeiHouService(config('weihou'));
        });
    }
}
